Optimal. Leaf size=49 \[ \frac {3}{2} \sqrt {x} \cos (x)-\frac {3}{2} \sqrt {\frac {\pi }{2}} \text {FresnelC}\left (\sqrt {\frac {2}{\pi }} \sqrt {x}\right )+x^{3/2} \sin (x) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.04, antiderivative size = 49, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 3, integrand size = 8, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.375, Rules used = {3377, 3385,
3433} \begin {gather*} -\frac {3}{2} \sqrt {\frac {\pi }{2}} \text {FresnelC}\left (\sqrt {\frac {2}{\pi }} \sqrt {x}\right )+x^{3/2} \sin (x)+\frac {3}{2} \sqrt {x} \cos (x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 3377
Rule 3385
Rule 3433
Rubi steps
\begin {align*} \int x^{3/2} \cos (x) \, dx &=x^{3/2} \sin (x)-\frac {3}{2} \int \sqrt {x} \sin (x) \, dx\\ &=\frac {3}{2} \sqrt {x} \cos (x)+x^{3/2} \sin (x)-\frac {3}{4} \int \frac {\cos (x)}{\sqrt {x}} \, dx\\ &=\frac {3}{2} \sqrt {x} \cos (x)+x^{3/2} \sin (x)-\frac {3}{2} \text {Subst}\left (\int \cos \left (x^2\right ) \, dx,x,\sqrt {x}\right )\\ &=\frac {3}{2} \sqrt {x} \cos (x)-\frac {3}{2} \sqrt {\frac {\pi }{2}} C\left (\sqrt {\frac {2}{\pi }} \sqrt {x}\right )+x^{3/2} \sin (x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains complex when optimal does not.
time = 0.01, size = 55, normalized size = 1.12 \begin {gather*} \frac {\sqrt {x} \text {Gamma}\left (\frac {5}{2},-i x\right )}{2 \sqrt {-i x}}+\frac {\sqrt {x} \text {Gamma}\left (\frac {5}{2},i x\right )}{2 \sqrt {i x}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.04, size = 34, normalized size = 0.69
method | result | size |
derivativedivides | \(x^{\frac {3}{2}} \sin \left (x \right )-\frac {3 \FresnelC \left (\frac {\sqrt {2}\, \sqrt {x}}{\sqrt {\pi }}\right ) \sqrt {2}\, \sqrt {\pi }}{4}+\frac {3 \sqrt {x}\, \cos \left (x \right )}{2}\) | \(34\) |
default | \(x^{\frac {3}{2}} \sin \left (x \right )-\frac {3 \FresnelC \left (\frac {\sqrt {2}\, \sqrt {x}}{\sqrt {\pi }}\right ) \sqrt {2}\, \sqrt {\pi }}{4}+\frac {3 \sqrt {x}\, \cos \left (x \right )}{2}\) | \(34\) |
meijerg | \(2 \sqrt {2}\, \sqrt {\pi }\, \left (\frac {3 \sqrt {x}\, \sqrt {2}\, \cos \left (x \right )}{8 \sqrt {\pi }}+\frac {x^{\frac {3}{2}} \sqrt {2}\, \sin \left (x \right )}{4 \sqrt {\pi }}-\frac {3 \FresnelC \left (\frac {\sqrt {2}\, \sqrt {x}}{\sqrt {\pi }}\right )}{8}\right )\) | \(49\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [C] Result contains complex when optimal does not.
time = 0.52, size = 74, normalized size = 1.51 \begin {gather*} x^{\frac {3}{2}} \sin \left (x\right ) - \frac {3}{32} \, \sqrt {\pi } {\left (-\left (i - 1\right ) \, \sqrt {2} \operatorname {erf}\left (\left (\frac {1}{2} i + \frac {1}{2}\right ) \, \sqrt {2} \sqrt {x}\right ) - \left (i + 1\right ) \, \sqrt {2} \operatorname {erf}\left (\left (\frac {1}{2} i - \frac {1}{2}\right ) \, \sqrt {2} \sqrt {x}\right ) + \left (i + 1\right ) \, \sqrt {2} \operatorname {erf}\left (\sqrt {-i} \sqrt {x}\right ) - \left (i - 1\right ) \, \sqrt {2} \operatorname {erf}\left (\left (-1\right )^{\frac {1}{4}} \sqrt {x}\right )\right )} + \frac {3}{2} \, \sqrt {x} \cos \left (x\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.38, size = 35, normalized size = 0.71 \begin {gather*} -\frac {3}{4} \, \sqrt {2} \sqrt {\pi } \operatorname {C}\left (\frac {\sqrt {2} \sqrt {x}}{\sqrt {\pi }}\right ) + \frac {1}{2} \, {\left (2 \, x \sin \left (x\right ) + 3 \, \cos \left (x\right )\right )} \sqrt {x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 3.17, size = 83, normalized size = 1.69 \begin {gather*} \frac {5 x^{\frac {3}{2}} \sin {\left (x \right )} \Gamma \left (\frac {5}{4}\right )}{4 \Gamma \left (\frac {9}{4}\right )} + \frac {15 \sqrt {x} \cos {\left (x \right )} \Gamma \left (\frac {5}{4}\right )}{8 \Gamma \left (\frac {9}{4}\right )} - \frac {15 \sqrt {2} \sqrt {\pi } C\left (\frac {\sqrt {2} \sqrt {x}}{\sqrt {\pi }}\right ) \Gamma \left (\frac {5}{4}\right )}{16 \Gamma \left (\frac {9}{4}\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [C] Result contains complex when optimal does not.
time = 0.44, size = 69, normalized size = 1.41 \begin {gather*} \left (\frac {3}{16} i + \frac {3}{16}\right ) \, \sqrt {2} \sqrt {\pi } \operatorname {erf}\left (\left (\frac {1}{2} i - \frac {1}{2}\right ) \, \sqrt {2} \sqrt {x}\right ) - \left (\frac {3}{16} i - \frac {3}{16}\right ) \, \sqrt {2} \sqrt {\pi } \operatorname {erf}\left (-\left (\frac {1}{2} i + \frac {1}{2}\right ) \, \sqrt {2} \sqrt {x}\right ) - \frac {1}{4} \, {\left (2 i \, x^{\frac {3}{2}} - 3 \, \sqrt {x}\right )} e^{\left (i \, x\right )} - \frac {1}{4} \, {\left (-2 i \, x^{\frac {3}{2}} - 3 \, \sqrt {x}\right )} e^{\left (-i \, x\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.02 \begin {gather*} \int x^{3/2}\,\cos \left (x\right ) \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________